<template>
  <view>
    <swiper>
      <swiper-item v-for="(item,index) in list" :key="index"></swiper-item>
    </swiper>
    <button @click="onClick">change</button>
  </view>
</template>

<script>
export default {
  data () {
    return {
      list: []
    }
  },
  methods: {
    onClick () {
      this.list = ['']
    }
  }
}
</script>

<style>
swiper {
  width: 100%;
  height: 300px;
}
swiper-item {
  background: red;
}
image {
  width: 100%;
  height: 300px;
}
</style>